home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-0039
/
source
/
dcdabout.mod
< prev
next >
Wrap
Text File
|
1997-04-16
|
4KB
|
113 lines
IMPLEMENTATION MODULE DCDAbout;
(*--------------------------------------------------------------------*)
(* *)
(* This library module is reponsible for processing the Dialogues *)
(* for DegasConvert. This module will show the dialogue, return *)
(* the input but will NOT clean up the screen. The calling program *)
(* is reponsible for that. *)
(* *)
(* I am having doubts about putting all the dialogues in one *)
(* module. It seemed like a good idea when I started, however, this *)
(* module will have 5 dialogues in it. It will need to import an *)
(* awful lot of types, which are only together by coincidence. *)
(* I do not want to make many more library modules either. The *)
(* module dependencies and general housekeeping are getting quite *)
(* involved as it is. *)
(* *)
(* They are getting split up, one module per dialog. *)
(* *)
(* *)
(* This is version 2.00 July 1988 L.G.Miller *)
(* :- remove print palette dialog *)
(* *)
(* 1.10 August 1987 L.G.Miller *)
(* *)
(*--------------------------------------------------------------------*)
(* IMPORT Trace; *)
FROM DCGlobal IMPORT (* CONST *)
LowRes,
MedRes,
HiRes,
PaletteEntry,
PrintPalette,
BITSPERWORD;
FROM SYSTEM IMPORT ADDRESS, ADR;
FROM Strings IMPORT String, Assign, Concat, Length;
FROM Resource IMPORT rsrc_gaddr;
IMPORT Object;
IMPORT GemObject;
IMPORT Forms;
FROM Forms IMPORT DialAction;
FROM ManyWindows IMPORT
(* VAR *)
AESApplId, (* AES handle for this application *)
VDIHandle, (* VDI handle of current Virtual Workstation *)
ShowMouse,
HideMouse;
(* Resource file constants *)
FROM Dcrsc IMPORT aboutbox, aboutbye, aboutver;
(* -------------------- End of IMPORTS ----------------------- *)
(*----------------------------------------------------------------------*)
(* G L O B A L T Y P E S *)
(*----------------------------------------------------------------------*)
TYPE
StringPtr = POINTER TO String; (* null terminated *)
(*----------------------------------------------------------------------*)
(* G L O B A L V A R I A B L E S *)
(*----------------------------------------------------------------------*)
PROCEDURE DoAboutDialog ( versionstr : ARRAY OF CHAR );
VAR
dTree : ADDRESS ;
x, y, w, h, dumc : CARDINAL ;
result : INTEGER ;
obptr : Object.PObject;
vstr : StringPtr;
BEGIN
dTree := GemObjects.TreePointer( aboutbox );
obptr := GemObjects.ObjectPointer(aboutbox, aboutver);
vstr := GemObjects.GetObjectSpec( aboutbox, aboutver );
Assign( versionstr, vstr^ );
Forms.form_center(dTree, x, y, w, h) ;
dumc := Forms.form_dial(ReserveSpace, 0, 0, 0, 0, x, y, w, h) ;
dumc := Forms.form_dial(ExpandBox, 0, 0, 0, 0, x, y, w, h) ;
dumc := Object.objc_draw(dTree, 0, 10, x, y, w, h) ;
result := Forms.form_do(dTree, 0) ;
GemObjects.DeselectObject(aboutbox, aboutbye) ;
dumc := Forms.form_dial(ShrinkBox, 0, 0, 0, 0, x, y, w, h) ;
dumc := Forms.form_dial(FreeSpace, 0, 0, 0, 0, x, y, w, h) ;
END DoAboutDialog ;
END DCDAbout.